import { PageContainer } from '@ant-design/pro-components';
import { history } from '@umijs/max';
import { Button } from 'antd';
import styles from './index.less';

const HomePage: React.FC = () => {
  return (
    <PageContainer ghost>
      <div className={styles.container}>
        <Button
          onClick={() => {
            localStorage.setItem('isLogin', 'true');
            history.push('/');
          }}
        >
          Login
        </Button>
      </div>
    </PageContainer>
  );
};

export default HomePage;
